/*
 * binsem.h
 *
 *  Created on: Apr 9, 2011
 *      Author: Arseny & Nir
 */

#ifndef BINSEM_H_
#define BINSEM_H_

struct binsem {
	uint enabled;
	int counter;
	int nextIndexToWake;
	struct spinlock lock;
};

struct {
	struct spinlock lock;
	struct binsem binsems[BINSEMCOUNT];

} semtable;


#endif /* BINSEM_H_ */
